<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>Class: Autotest::Rspec</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <meta http-equiv="Content-Script-Type" content="text/javascript" />
  <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
  <script type="text/javascript">
  // <![CDATA[

  function popupCode( url ) {
    window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
  }

  function toggleCode( id ) {
    if ( document.getElementById )
      elem = document.getElementById( id );
    else if ( document.all )
      elem = eval( "document.all." + id );
    else
      return false;

    elemStyle = elem.style;
    
    if ( elemStyle.display != "block" ) {
      elemStyle.display = "block"
    } else {
      elemStyle.display = "none"
    }

    return true;
  }
  
  // Make codeblocks hidden by default
  document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
  
  // ]]>
  </script>

</head>
<body>



    <div id="classHeader">
        <table class="header-table">
        <tr class="top-aligned-row">
          <td><strong>Class</strong></td>
          <td class="class-name-in-header">Autotest::Rspec</td>
        </tr>
        <tr class="top-aligned-row">
            <td><strong>In:</strong></td>
            <td>
                <a href="../../files/vendor/plugins/rspec/lib/autotest/rspec_rb.html">
                vendor/plugins/rspec/lib/autotest/rspec.rb
                </a>
        <br />
            </td>
        </tr>

        <tr class="top-aligned-row">
            <td><strong>Parent:</strong></td>
            <td>
                <a href="../Autotest.html">
                Autotest
               </a>
            </td>
        </tr>
        </table>
    </div>
  <!-- banner header -->

  <div id="bodyContent">



  <div id="contextContent">



   </div>

    <div id="method-list">
      <h3 class="section-bar">Methods</h3>

      <div class="name-list">
      <a href="#M000008">consolidate_failures</a>&nbsp;&nbsp;
      <a href="#M000009">make_test_cmd</a>&nbsp;&nbsp;
      <a href="#M000007">new</a>&nbsp;&nbsp;
      </div>
    </div>

  </div>


    <!-- if includes -->

    <div id="section">





      


    <!-- if method_list -->
    <div id="methods">
      <h3 class="section-bar">Public Class methods</h3>

      <div id="method-M000007" class="method-detail">
        <a name="M000007"></a>

        <div class="method-heading">
          <a href="#M000007" class="method-signature">
          <span class="method-name">new</span><span class="method-args">()</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000007-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000007-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/autotest/rspec.rb, line 22</span>
22:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>
23:     <span class="ruby-keyword kw">super</span>
24:     <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">failed_results_re</span> = <span class="ruby-regexp re">/^\d+\)\n(?:\e\[\d*m)?(?:.*?Error in )?'([^\n]*)'(?: FAILED)?(?:\e\[\d*m)?\n(.*?)\n\n/</span><span class="ruby-identifier">m</span>
25:     <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">completed_re</span> = <span class="ruby-regexp re">/\n(?:\e\[\d*m)?\d* examples?/</span><span class="ruby-identifier">m</span>
26:   <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <h3 class="section-bar">Public Instance methods</h3>

      <div id="method-M000008" class="method-detail">
        <a name="M000008"></a>

        <div class="method-heading">
          <a href="#M000008" class="method-signature">
          <span class="method-name">consolidate_failures</span><span class="method-args">(failed)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000008-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000008-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/autotest/rspec.rb, line 28</span>
28:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">consolidate_failures</span>(<span class="ruby-identifier">failed</span>)
29:     <span class="ruby-identifier">filters</span> = <span class="ruby-identifier">new_hash_of_arrays</span>
30:     <span class="ruby-identifier">failed</span>.<span class="ruby-identifier">each</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">spec</span>, <span class="ruby-identifier">trace</span><span class="ruby-operator">|</span>
31:       <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">trace</span> <span class="ruby-operator">=~</span> <span class="ruby-regexp re">/\n(\.\/)?(.*spec\.rb):[\d]+:\Z?/</span>
32:         <span class="ruby-identifier">filters</span>[<span class="ruby-identifier">$2</span>] <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-identifier">spec</span>
33:       <span class="ruby-keyword kw">end</span>
34:     <span class="ruby-keyword kw">end</span>
35:     <span class="ruby-keyword kw">return</span> <span class="ruby-identifier">filters</span>
36:   <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>

      <div id="method-M000009" class="method-detail">
        <a name="M000009"></a>

        <div class="method-heading">
          <a href="#M000009" class="method-signature">
          <span class="method-name">make_test_cmd</span><span class="method-args">(files_to_test)</span>
          </a>
        </div>
      
        <div class="method-description">
          <p><a class="source-toggle" href="#"
            onclick="toggleCode('M000009-source');return false;">[Source]</a></p>
          <div class="method-source-code" id="M000009-source">
<pre>
    <span class="ruby-comment cmt"># File vendor/plugins/rspec/lib/autotest/rspec.rb, line 38</span>
38:   <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">make_test_cmd</span>(<span class="ruby-identifier">files_to_test</span>)
39:     <span class="ruby-keyword kw">return</span> <span class="ruby-value str">''</span> <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">files_to_test</span>.<span class="ruby-identifier">empty?</span>
40:     <span class="ruby-keyword kw">return</span> <span class="ruby-node">&quot;#{ruby} -S #{files_to_test.keys.flatten.join(' ')} #{add_options_if_present}&quot;</span>
41:   <span class="ruby-keyword kw">end</span>
</pre>
          </div>
        </div>
      </div>


    </div>


  </div>


<div id="validator-badges">
  <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
</div>

</body>
</html>